﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using WLong.Model;
using System.Collections;

namespace BLL.wlBLL
{
    public class Acticle
    {
        DAL.wlDAL.Article alc = new DAL.wlDAL.Article();
        /// <summary>
        /// 根据套餐组获得信息
        /// </summary>
        /// <param name="Name">string</param>
        /// <returns>DataTable</returns>
        public DataTable GetbllTaoCanInfo(string Name)
        {
            return alc.GetTaoCanInfo(Name);
        }
        /// <summary>
        /// 根据文章ID获得信息
        /// </summary>
        /// <param name="Name">string</param>
        /// <returns>DataTable</returns>
        public DataTable GetbllTaoCanInfoContent(string ArticleID)
        {
            return alc.GetTaoCanInfoContent(ArticleID);
        }

        /// <summary>
        /// 添加修改
        /// </summary>
        /// <param name="article"></param>
        /// <param name="articleCategory"></param>
        /// <param name="isAdd"></param>
        /// <returns></returns>
        public int AddArticle(ArticleInfomation article ,Rel_ArticleOtherCategory articleCategory , bool isAdd)
        {
            return alc.AddArticle(article, articleCategory, isAdd);
        }

        /// <summary>
        /// 返回所有文章
        /// </summary>
        /// <returns></returns>
        public DataTable GetAllArticle()
        {
            return alc.GetAllArticle();
        }

        /// <summary>
        /// 根据组别获得类型
        /// </summary>
        /// <param name="IT">string</param>
        /// <returns>DataTable</returns>
        public DataTable GetSuportCategory(string Group)
        {
            return alc.GetSuportCategory(Group);
        }
        /// <summary>
        /// 根据特定条件查信息OtherCategoryGroup或OtherCategoryID
        /// </summary>
        /// <param name="htwhere">Hashtable</param>
        /// <returns>DataTable</returns>
        public DataTable GetActicleInfo(Hashtable htwhere)
        {
            return alc.GetActicleInfo(htwhere);
        }
        ///// <summary>
        ///// 根据特定条件查信息
        ///// </summary>
        ///// <param name="htwhere">Hashtable</param>
        ///// <returns>DataTable</returns>
        //public DataTable GetTopActicleInfo(Hashtable htwhere,int top)
        //{
        //    return alc.GetTopActicleInfo(htwhere,top);
        //}
    }
}
